﻿using Microsoft.Extensions.DependencyInjection;
using NLog.Extensions.Logging;

namespace FastEasy.Common.Logs.NLogs
{
    public static class NlogModule
    {
        /// <summary>
        /// Nlog注入
        /// </summary>
        /// <param name="Services"></param>
        public static void AddNlogModule(this IServiceCollection Services)
        {
            Services.AddLogging(logging =>
            {
                logging.AddNLog();
            });
        }
    }
}